<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:p="http://primefaces.prime.com.tr/ui"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core">
    <h:head>
        <title>Event Booking</title>
    </h:head>
    <h:body>
        <h1>Select an option</h1>
        <hr/>
        <h:form>
            <h:panelGrid columns="2" border="0">
                <h:outputLabel value="Enter as TCube "/>
                <br/>
                <p:commandButton value="Enter" action="addvenue.xhtml?faces-redirect=true"/>
                <br/>
                <h:outputLabel for="stakeholderName" value="Name:" />
                <h:selectOneMenu style="width: 260px" value="#{stakeholderPerformanceMB.stakeholderName}">
                    <f:selectItems value="#{stakeholderPerformanceMB.getStakeholdersName()}"></f:selectItems>
                </h:selectOneMenu>
                <p:commandButton value="Enter" action="addevent.xhtml?faces-redirect=true">
                    <f:setPropertyActionListener target="#{stakeholderPerformanceMB.stakeholderId}" value="#{stakeholderPerformanceMB.findId(stakeholderPerformanceMB.stakeholderName)}"/>
                </p:commandButton>
                <br/>
                <h:outputLabel value="Enter as a User"/>
                <br/>
                <p:commandButton value="Enter" action="mainpage.xhtml?faces-redirect=true" />
            </h:panelGrid>
        </h:form>
    </h:body>
</html>